package com.yang.auth.enums;

import com.yang.framework.common.exception.IBaseException;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResponseCodeEnum implements IBaseException {

    //  ======   通用异常状态码   ======
    SYSTEM_ERROR("AUTH-10000", "系统异常"),
    PARAM_NOT_VALID("AUTH-10001", "参数错误"),

    //  ======   业务异常状态码   ======
    VERIFICATION_CODE_SEND_FREQUENTLY("AUTH-20000", "验证码发送频繁，请3分钟之后再试"),
    VERIFICATION_CODE_ERROR("AUTH-20001", "验证码错误"),

    ;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 错误信息
     */
    private String errorMessage;
}
